﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using BOHVote.BLL;

namespace BOH
{
    public partial class ShowInfo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["ID"] != null)
            {
                fillForm(Request.QueryString["ID"].ToString());
            }
        }

        public void fillForm(string NotifyID)
        {
            DataSet dst = NotifyClass.getNotifyByID(NotifyID);
            if (dst.Tables.Count > 0)
            {
                if (dst.Tables[0].Rows.Count > 0)
                {
                    labContext.Text = dst.Tables[0].Rows[0]["Notify_Context"].ToString();
                    this.Page.Title = dst.Tables[0].Rows[0]["Notify_Title"].ToString();
                }
            }
        }
    }
}
